package com.example.test_20210601_Fruits;

public interface Fruits {
    void show();

    class AppleImpl implements Fruits{
        @Override
        public void show() {
            System.out.println("苹果");
        }
    }

    class PearImpl implements Fruits{
        @Override
        public void show() {
            System.out.println("梨子");
        }
    }
}
